import Vue from 'vue'
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import './assets/global.less'

import App from './App.vue'

import router from './router'
import store from './store'
import VueQuillEditor from 'vue-quill-editor'
// 导入dayjs
import dayjs from 'dayjs'

// require styles
// import 'quill/dist/quill.core.css'
// import 'quill/dist/quill.snow.css'
// import 'quill/dist/quill.bubble.css'

// 定义全局过滤器

Vue.filter('totime', (n) => {
  return dayjs(n).format('YYYY-MM-DD HH-mm-ss')
})

Vue.use(VueQuillEditor /* { default global options } */)
Vue.config.productionTip = false
Vue.use(ElementUI)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
